﻿using BCCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.Order.Order
{
    /// <summary>
    /// 订单发货费用地址
    /// </summary>
    public class OrderShippingCostAddressRequestDto
    {
        /// <summary>
        /// 目的地区县编码
        /// </summary>
        [Display(Name = "目的地区县编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [RegularExpression(RegexPatterns.NUMBER, ErrorMessage = "{0} 应全部是数字")]
        public string EndCountyCode { get; set; }
        /// <summary>
		/// 发货地经度
		/// </summary>		
        [Display(Name = "发货地经度")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public double EndLongitude { get; set; }
        /// <summary>
        /// 发货地纬度
        /// </summary>		
        [Display(Name = "发货地纬度")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public double EndLatitude { get; set; }
        /// <summary>
        /// 货物重量
        /// </summary>
        [Display(Name = "货物重量")]
        public decimal? GoodsWeight { get; set; }
        /// <summary>
        /// 货物体积
        /// </summary>
        [Display(Name = "货物体积")]
        public decimal? GoodsVolume { get; set; }
        /// <summary>
        /// 目的地地址
        /// </summary>
        [Display(Name = "目的地地址")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string EndAddress { get; set; }
    }
}
